package com.zoo.boot.api;

/**
 * @Author: WangB
 */
public enum ResultCode implements IErrorCode {

    SUCCESS(200,"操作成功"),
    TABLE_SUCCESS(0,"返回成功"),
    FAIL(500,"操作失败"),
    VALIDATE_FAILED(401,"检查参数失败"),
    FORBIDDEN(403,"你没有权限，请联系管理员")
    ;

    private long code;

    private String message;

    private ResultCode(long code,String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
